//const BASE_URL = "http://localhost:3000";
const BASE_URL = "http://blogsapi.zhouziao.cn";
const API = {
    LOGIN: {
        LOGIN_ACTION: BASE_URL + '/admin/login_action',
        LOGIN_UPDATE: BASE_URL + '/admin/create_admin',
        LOGIN_OUT: BASE_URL + '/admin/loginout_action',
        LOGIN_CHECK:BASE_URL+'/admin/login_check'
    },
    ESSAY: {
        ESSAY_GET: BASE_URL + '/essay/get_essay',
        ESSAY_GET_ALL: BASE_URL + '/essay/get_essay_all',
        ESSAY_GET_COUNT: BASE_URL + '/essay/get_essay_count',
        ESSAY_UPDATE: BASE_URL + '/essay/update_essay',
        ESSAY_DESTROY: BASE_URL + '/essay/destroy_essay',
        ESSAY_CREATE: BASE_URL + '/essay/create_essay',
        ESSAY_CHANGE_STATUS: BASE_URL + '/essay/change_status_essay',
        ESSAY_UPLOAD_IMAGE: BASE_URL + '/essay/upload_image',
    },
    TYPE: {
        TYPE_GET: BASE_URL + '/type/get_type',
        TYPE_UPDATE: BASE_URL + '/type/update_type',
        TYPE_DESTROY: BASE_URL + '/type/destroy_type',
        TYPE_CREATE: BASE_URL + '/type/create_type',
    },
    PROJECT: {
        PROJECT_GET: BASE_URL + '/project/get_project',
        PROJECT_UPDATE: BASE_URL + '/project/update_project',
        PROJECT_DESTROY: BASE_URL + '/project/destroy_project',
        PROJECT_CREATE: BASE_URL + '/project/create_project',
        PROJECT_CHANGE_STATUS: BASE_URL + '/project/change_status_project',
    },
    FIREND: {
        FIREND_GET: BASE_URL + '/firendlink/get_firendlink',
        FIREND_UPDATE: BASE_URL + '/firendlink/update_firendlink',
        FIREND_DESTROY: BASE_URL + '/firendlink/destroy_firendlink',
        FIREND_CREATE: BASE_URL + '/firendlink/create_firendlink',
    }
}
const NAV = [
    {
        field: 'essay',
        title: '文章管理',
        icon: 'iconbiji'
    },
    {
        field: 'type',
        title: '类型管理',
        icon: 'iconleibiefenlei'
    },
    {
        field: 'project',
        title: '项目管理',
        icon: 'iconweb'
    },
    {
        field: 'firend',
        title: '友链管理',
        icon: 'iconrelevance'
    },
    {
        field: 'admin',
        title: '用户管理',
        icon: 'iconxingmingyonghumingnicheng'
    }
]
export {
    API,
    BASE_URL,
    NAV
}